package com.ocom.common.request.web;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class ConsumeDeviceAddRequest {
	@JsonProperty("comId")
	@Min(1L)
	@NotNull(message = "comId 不能为空")
	private Long comId;
	@NotBlank(message = "deviceNo 不能为空")
	private String deviceNo;
	@NotBlank(message = "deviceName 不能为空")
	private String deviceName;
	@NotNull(message = "deviceMode 不能为空")
	private Integer deviceMode;
	private String aiotNo;
	private String remark;
	private Integer consType;
}
